
const Mock = require('mockjs');

function getFileOverView(app) {
	app.get('/mock/get_file_over_view', (req, res) => {
		setTimeout(() => {
			const data = Mock.mock({
				'code': 200,
				'success': true,
				'data|10': [{
					'id|+1': 1,
					'source|1-6': '系统',
					'path': 'XDFILE/JIAOWU',
					'agreement': '	FTP',
					'date|1-3': '2019-03-05',
					'switch|1-2': true,
					'state|1-3': 1
				}]
			})
			res.json(data)
		}, 300)
	})
}

module.exports = {
	getFileOverView
}